package cn.tedu.kcircle.check.admin.adapter.rpc;

import cn.tedu.kcircle.check.admin.api.rpc.CheckAdminRpcApi;
import cn.tedu.kcircle.check.admin.repository.persist.CheckLogRepository;
import cn.tedu.kcircle.common.dto.ResourceDTO;
import lombok.AllArgsConstructor;
import org.springframework.stereotype.Service;

@Service
@AllArgsConstructor
public class CheckAdminRpcApiImpl implements CheckAdminRpcApi {
    private CheckLogRepository checkLogRepository;
    @Override
    public int deleteCheckLogByResource(ResourceDTO resourceDTO) {
        return checkLogRepository.deleteByResource(resourceDTO);
    }
}
